#ifndef WXSBITMAPCOMBOBOX_H
#define WXSBITMAPCOMBOBOX_H

#include <wx/bmpcbox.h>

#include "../wxswidget.h"
#include "wxsimagelist.h"
#include "../properties/wxsimagelisteditordlg.h"



class wxsBitmapComboBox: public wxsWidget {
  public:

    wxsBitmapComboBox( wxsItemResData* Data );

  private:

    virtual void        OnBuildCreatingCode();
    virtual wxObject   *OnBuildPreview( wxWindow* Parent, long Flags );
    virtual void        OnEnumWidgetProperties( long Flags );

    void        FindAllImageLists( wxArrayString &aNames );
    void        UpdateComboItemList( void );
    void        ParseComboItem( wxString inSource, wxString &outItem, int &outIndex );



    wxString        mImageList;                 // list to use to select images
    wxArrayString   mItems;                     // text of drop-down items
};

#endif
